#include	"LogConnector.h"
#include	<protocols/Common.pb.h>
#include	<ctime>

void LogConnector::Write(uint64_t pid, const std::string & action, const std::string & detail) {
	Proto::CmdLog cmd;
	cmd.set_pid(pid);
	cmd.set_action(action);
	cmd.set_detail(detail);
	cmd.set_time((uint32_t)time(NULL));
	Send(Proto::CMD_LOG, cmd);
}